// 新建一个vue-router 实例
import VueRouter from 'vue-router'
import Home from '../pages/home.vue'
import About from '../pages/about.vue'
const router = new VueRouter({
    routes: [{
        path: '/',
        component: Home
    }, {
        path: '/about',
        component: About
    }]
})
export default router